package com.example.j2025_11_10.controller;

import com.example.j2025_11_10.Model.BookInfo;
import com.example.j2025_11_10.service.BookService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/book")
public class BookController {
    @RequestMapping("/getList")
    public List<BookInfo> getList(){
        BookService bookService = new BookService();
        return bookService.getList();
    }
}
